import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(url, ...arg)

export default {
	//分页查询站内公告
	queryList(data) {
		return request('/cm/' + data.pageNo + '/' + data.pageSize + '/listNotice.do', {
			keyword: data.keyword,
			status: data.status
		}, "post")
	},
	//添加站内公告
	addNotice(data) {
		return request('/cm/addNotice.do', data, "post")
	},
	//查看站内公告
	getNotice(id) {
		return request('/cm/' + id + '/getNotice.do', null, "get")
	},
	//修改站内公告
	editNotice(data) {
		return request('/cm/editNotice.do', data, "post")
	},
	//删除站内公告
	delNotice(id) {
		return request('/cm/' + id + '/delNotice.do', null, "get")
	},
	//发布站内公告
	startNotice(id) {
		return request('/cm/' + id + '/issueNotice.do', null, "get")
	},
	//禁用站内公告
	disNotice(id) {
		return request('/cm/' + id + '/disNotice.do', null, "get")
	},
	//字典查询
	queryDict() {
		return request('/nft/NOTICE/showDict.do', null, "post")

	}


}
